<nz-spin *ngIf="!i" class="modal-spin"></nz-spin>

<div *ngIf="i">
  <nz-tree
    #treeComponent
    [nzData]="nodes"
    nzCheckable
    nzMultiple
    [nzCheckedKeys]="checked"
    (nzCheckBoxChange)="checkBoxChangeEvent($event)"
  ></nz-tree>
</div>

<div class="drawer-footer">
  <button nz-button type="button" (click)="close()">关闭</button>
  <button nz-button type="submit" nzType="primary" (click)="save()" [nzLoading]="http.loading" [disabled]="!hasChecked">保存 </button>
</div>
